package com.tn.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @program: tn_aucy_java
 * @description:
 * @author: yangjiayao
 * @create: 2021-11-12 15:17
 */
@Getter
@Setter
public class DatabaseOperationFailedException extends RuntimeException {
    /**
     * 错误码
     */
    private int code;

    /**
     * 错误描述
     */
    private String message;

    /**
     * 构造方法
     */
    public DatabaseOperationFailedException(int code, String message) {
        super();
        this.code = code;
        this.message = message;
    }
}
